package com.anti.activiti.example;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;
import org.activiti.engine.impl.delegate.ActivityBehavior;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.Serializable;

/**
 * @Author: anTi
 * @Date: 2019/3/18 15:33
 * @Description:服务任务实现ActivityBehavior
 * @version: 1.0
 */
public class MyActivityBehavior implements ActivityBehavior, Serializable {
    private static final Logger LOGGER = LoggerFactory.getLogger(MyActivityBehavior.class);

    /**
     * 实现ActivityBehavior  任务会等待
     * @param delegateExecution
     */
    @Override
    public void execute(DelegateExecution delegateExecution) {
        LOGGER.info("run my ActivityBehavior {}");

    }
}
